package com.fare.taluo.queue;

import com.dayatang.domain.InstanceFactory;
import com.fare.taluo.application.queue.IScheduleQueueApplication;
import com.fare.taluo.application.queue.QueueLineApplication;
import com.fare.taluo.queue.template.ScheduleQueueTemplate;
import com.fare.taluo.vo.queue.QueuePortVO;
/**
 * 
 * @author zengxiangqi
 *
 */
public class ScheduleQueuePort extends ScheduleQueueTemplate<ScheduleQueuePort, QueuePortVO>{
	public static final String SCHEDULE_QUEUE_ID = "BasicData";
	
	private QueuePortVO vo;
	
	public ScheduleQueuePort(){}
	
	public ScheduleQueuePort(QueuePortVO vo){
		this.vo = vo;
	}
	
	@Override
	public IScheduleQueueApplication<QueuePortVO> getApplication() {
		return InstanceFactory.getInstance(QueueLineApplication.class, "queueBasicDataApplication");
	}

	@Override
	public ScheduleQueuePort delegate(QueuePortVO vo) {
		return new ScheduleQueuePort(vo);
	}

	@Override
	public QueuePortVO getDelegateSource() {
		return vo;
	}

}
